package viz.controller.core
{
	import flare.vis.data.NodeSprite;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import viz.model.flare.proxies.FlareDataProxy;
	import viz.model.prefs.proxies.PreferenceProxy;
	import viz.model.prefs.vos.EdgePropVo;

	public class DefaultAllNodeEdgesCmd extends SimpleCommand
	{
		override public function execute(note:INotification):void{
			var prefs:PreferenceProxy = PreferenceProxy(facade.retrieveProxy(PreferenceProxy.NAME)),
				flareData:FlareDataProxy = FlareDataProxy(facade.retrieveProxy(FlareDataProxy.NAME)),
				vo:EdgePropVo = EdgePropVo( prefs.getProperty( note.getType() ) ),
				node:NodeSprite = flareData.getNode( note.getBody() );
			vo.setAllNodeEdges( node  );
		}
		
	}
}